
<html>
<head>
<title>login</title>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/style.css">
</head>
<body>
<?php $this->load->view('admin/heard')?>
<div class="container from ">
	<div class="page-header">
	  <h1>分类列表 <a class="pull-right btn btn-success" href="<?=site_url('/admin/catalog/add')?>">添加</a></h1>
	</div>
	<table class="table table-hover" cellpadding="0" cellspacing="0">
		<tr>
			<td>编号</td>
			<td>名称</td>
			<td>修改操作</td>
		</tr>
		
	<?php	
	foreach($catalogs as $catalog) {
	?>	
		<tr> 
			<td><?=$catalog->id;?></td>
			<td><?php echo $catalog->class;?></td>
			<td><a class="btn btn-info btn btn-primary btn-xs" href="<?php echo site_url("admin/catalog/edit/".$catalog->id)?>">修改</a>&nbsp;<a class="btn btn-danger btn btn-primary btn-xs" class="del"  href="<?php echo site_url("admin/catalog/del/".$catalog->id)?>">删除</a></td>
		</tr>
	<?php	
	}
	?>
	</table>
</div>
</body>
</html>